g&&(e=g):e=h}return e},_preventOverlap:function(e,c,b,g){var f=this.get("align"),h="x"===c,p,q,t,m,l;if(f&&f.points&&k[c][f.points.join("")]){if(c=this._getRegion(f.node))p=h?b.width:b.height,q=h?c.left:c.top,t=h?c.right:c.bottom,m=h?c.left-g.left:c.top-g.top,l=h?g.right-c.right:g.bottom-c.bottom;e>q?lp&&(e=q-p):m
p&&(e=t)}return e},_bindUIPosConstrained:function(){this.after("constrainChange",this._afterConstrainChange);
this._enableConstraints(this.get("constrain"))},_afterConstrainChange:function(e){this._enableConstraints(e.newVal)},_enableConstraints:function(e){e?(this.constrain(),this._cxyHandle=this._cxyHandle||this.on("constrain|xyChange",this._constrainOnXYChange)):this._cxyHandle&&(this._cxyHandle.detach(),this._cxyHandle=null)},_constrainOnXYChange:function(e){e.constrained||(e.newVal=this.getConstrainedXY(e.newVal))},_getRegion:function(e){var c;e?(e=w.one(e))&&(c=e.get("region")):c=this._posNode.get("viewportRegion");
return c}};a.WidgetPositionConstrain=s},"patched-v3.18.1",{requires:["widget-position"]});
YUI.add("widget-position",function(a,J){function s(c){}var w=a.Lang,k=a.Widget,e=k.UI_SRC;s.ATTRS={x:{setter:function(c){this._setX(c)},getter:function(){return this._getX()},lazyAdd:!1},y:{setter:function(c){this._setY(c)},getter:function(){return this._getY()},lazyAdd:!1},xy:{value:[0,0],validator:function(c){return this._validateXY(c)}}};s.POSITIONED_CLASS_NAME=k.getClassName("positioned");s.prototype={initializer:function(){this._posNode=this.get("boundingBox");a.after(this._renderUIPosition,
this,"renderUI");a.after(this._syncUIPosition,this,"syncUI");a.after(this._bindUIPosition,this,"bindUI")},_renderUIPosition:function(){this._posNode.addClass(s.POSITIONED_CLASS_NAME)},_syncUIPosition:function(){"relative"===this._posNode.getStyle("position")&&this.syncXY();this._uiSetXY(this.get("xy"))},_bindUIPosition:function(){this.after("xyChange",this._afterXYChange)},move:function(){var c=arguments,c=w.isArray(c[0])?c[0]:[c[0],c[1]];this.set("xy",c)},syncXY:function(){this.set("xy",this._posNode.getXY(),
{src:e})},_validateXY:function(c){return w.isArray(c)&&w.isNumber(c[0])&&w.isNumber(c[1])},_setX:function(c){this.set("xy",[c,this.get("xy")[1]])},_setY:function(c){this.set("xy",[this.get("xy")[0],c])},_getX:function(){return this.get("xy")[0]},_getY:function(){return this.get("xy")[1]},_afterXYChange:function(c){c.src!=e&&this._uiSetXY(c.newVal)},_uiSetXY:function(c){this._posNode.setXY(c)}};a.WidgetPosition=s},"patched-v3.18.1",{requires:["base-build","node-screen","widget"]});
YUI.add("widget-stack",function(a,J){function s(b){}var w=a.Lang,k=a.UA,e=a.Node,c=a.Widget;s.ATTRS={shim:{value:6==k.ie},zIndex:{value:0,setter:"_setZIndex"}};s.HTML_PARSER={zIndex:function(b){return this._parseZIndex(b)}};s.SHIM_CLASS_NAME=c.getClassName("shim");s.STACKED_CLASS_NAME=c.getClassName("stacked");s.SHIM_TEMPLATE='\x3ciframe class\x3d"'+s.SHIM_CLASS_NAME+'" frameborder\x3d"0" title\x3d"Widget Stacking Shim" src\x3d"javascript:false" tabindex\x3d"-1" role\x3d"presentation"\x3e\x3c/iframe\x3e';
s.prototype={initializer:function(){this._stackNode=this.get("boundingBox");this._stackHandles={};a.after(this._renderUIStack,this,"renderUI");a.after(this._syncUIStack,this,"syncUI");a.after(this._bindUIStack,this,"bindUI")},_syncUIStack:function(){this._uiSetShim(this.get("shim"));this._uiSetZIndex(this.get("zIndex"))},_bindUIStack:function(){this.after("shimChange",this._afterShimChange);this.after("zIndexChange",this._afterZIndexChange)},_renderUIStack:function(){this._stackNode.addClass(s.STACKED_CLASS_NAME)},
_parseZIndex:function(b){b=b.inDoc()&&"static"!==b.getStyle("position")?b.getComputedStyle("zIndex"):"auto";return"auto"===b?null:b},_setZIndex:function(b){w.isString(b)&&(b=parseInt(b,10));w.isNumber(b)||(b=0);return b},_afterShimChange:function(b){this._uiSetShim(b.newVal)},_afterZIndexChange:function(b){this._uiSetZIndex(b.newVal)},_uiSetZIndex:function(b){this._stackNode.setStyle("zIndex",b)},_uiSetShim:function(b){b?(this.get("visible")?this._renderShim():this._renderShimDeferred(),6==k.ie&&
this._addShimResizeHandlers()):this._destroyShim()},_renderShimDeferred:function(){this._stackHandles.shimdeferred=this._stackHandles.shimdeferred||[];this._stackHandles.shimdeferred.push(this.on("visibleChange",function(b){b.newVal&&this._renderShim()}))},_addShimResizeHandlers:function(){this._stackHandles.shimresize=this._stackHandles.shimresize||[];var b=this.sizeShim,g=this._stackHandles.shimresize;g.push(this.after("visibleChange",b));g.push(this.after("widthChange",b));g.push(this.after("heightChange",
b));g.push(this.after("contentUpdate",b))},_detachStackHandles:function(b){b=this._stackHandles[b];var g;if(b&&0b?-1:c=a.UA.ie,c=a.Component.create({NAME:"overlaymask",ATTRS:{alignPoints:{value:["tl","tl"],validator:s.isArray},background:{lazyAdd:!1,value:null,validator:s.isString,setter:function(b){b&&this.get("contentBox").setStyle("background",b);return b}},target:{cloneDefaultValue:!1,lazyAdd:!1,value:k.doc,setter:function(b){b=a.one(b);var g=this._isDoc=b.compareTo(k.doc),f=this._isWin=b.compareTo(k.win);this._fullPage=
g||f;return b}},opacity:{value:0.5,validator:s.isNumber,setter:function(b){return this._setOpacity(b)}},shim:{value:a.UA.ie},visible:{value:!1},zIndex:{value:1E3}},EXTENDS:a.OverlayBase,prototype:{bindUI:function(){c.superclass.bindUI.apply(this,arguments);this._eventHandles=[this.after("targetChange",this._afterTargetChange),this.after("visibleChange",this._afterVisibleChange),a.on("windowresize",a.bind(this.refreshMask,this))]},syncUI:function(){this.refreshMask()},destructor:function(){(new a.EventHandle(this._eventHandles)).detach()},
getTargetSize:function(){var b=this.get("target"),g=this._isDoc,f=this._isWin,h=b.get("offsetHeight"),b=b.get("offsetWidth");e?f?(b=a.DOM.winWidth(),h=a.DOM.winHeight()):g&&(b=a.DOM.docWidth(),h=a.DOM.docHeight()):this._fullPage&&(b=h="100%");return{height:h,width:b}},refreshMask:function(){var b=this.get("alignPoints"),g=this.get("target"),f=this.get("boundingBox"),h=this.getTargetSize(),p=this._fullPage;f.setStyles({position:e||!p?"absolute":"fixed",left:0,top:0});f=h.height;h=h.width;w(f)&&this.set("height",
f);w(h)&&this.set("width",h);p||this.align(g,b)},_setOpacity:function(b){this.get("contentBox").setStyle("opacity",b);return b},_uiSetVisible:function(b){c.superclass._uiSetVisible.apply(this,arguments);b&&this._setOpacity(this.get("opacity"))},_afterTargetChange:function(b){this.refreshMask()},_afterVisibleChange:function(b){this._uiSetVisible(b.newVal)},_uiSetXY:function(){this._fullPage&&!e||c.superclass._uiSetXY.apply(this,arguments)}}});a.OverlayMask=c},"3.0.3-deprecated.100",{requires:["event-resize",
"aui-base-deprecated","aui-overlay-base-deprecated"],skinnable:!0});
YUI.add("aui-parse-content",function(a,J){var s=a.Lang,w=s.isString,k=a.config.doc,e={"":1,"text/javascript":1,"text/parsed":1},c=a.Component.create({NAME:"ParseContent",NS:"ParseContent",ATTRS:{queue:{value:null},preserveScriptNodes:{validator:s.isBoolean,value:!1}},EXTENDS:a.Plugin.Base,prototype:{initializer:function(){c.superclass.initializer.apply(this,arguments);this.set("queue",new a.AsyncQueue);this._bindAOP()},globalEval:function(b){var g=a.getDoc(),g=g.one("head")||g.get("documentElement"),
f=k.createElement("script");f.type="text/javascript";b&&(f.text=s.trim(b));g.appendChild(f).remove()},parseContent:function(b){b=this._extractScripts(b);this._dispatch(b);return b},_addInlineScript:function(b){this.get("queue").add({args:b,context:this,fn:this.globalEval,timeout:0})},_bindAOP:function(){var b=this,g=function(f){var h=Array.prototype.slice.call(arguments),p=b.parseContent(f);h.splice(0,1,p.fragment);return new a.Do.AlterArgs(null,h)};this.doBefore("insert",g);this.doBefore("replaceChild",
g);g=function(f){f=b.parseContent(f);return new a.Do.AlterArgs(null,[f.fragment])};this.doBefore("replace",g);this.doBefore("setContent",g)},_extractScripts:function(b){var g=a.Node.create("\x3cdiv\x3e\x3c/div\x3e"),f={},h=this.get("preserveScriptNodes");w(b)?a.DOM.addHTML(g,"\x3cdiv\x3e_\x3c/div\x3e"+b,"append"):(g.append("\x3cdiv\x3e_\x3c/div\x3e"),g.append(b));f.js=g.all("script").filter(function(p){var q=e[p.getAttribute("type").toLowerCase()];h&&p.setAttribute("type","text/parsed");return q});
h||f.js.each(function(p){p.remove()});g.get("firstChild").remove();f.fragment=g.get("childNodes").toFrag();return f},_dispatch:function(b){var g=this,f=g.get("queue"),h=[];b.js.each(function(p){var q=p.get("src");q?(h.length&&(g._addInlineScript(h.join(";")),h.length=0),f.add({autoContinue:!1,fn:function(){a.Get.script(q,{onEnd:function(t){t.purge();f.run()}})},timeout:0})):(p=p._node,h.push(p.text||p.textContent||p.innerHTML||""))});h.length&&g._addInlineScript(h.join(";"));f.run()}}});a.namespace("Plugin").ParseContent=
c},"3.0.3-deprecated.100",{requires:["async-queue","plugin","io-base","aui-component","aui-node-base"]});
(function(a,J){var s={icons:{minus:themeDisplay.getPathThemeImages()+"/arrows/01_minus.png",plus:themeDisplay.getPathThemeImages()+"/arrows/01_plus.png"},publishToLive:function(w){w=w||{};J.Util.openWindow({dialog:{constrain:!0,modal:!0,on:{visibleChange:function(k){k.newVal||this.destroy()}}},title:w.title,uri:w.url})}};J.provide(s,"all",function(w){w=w||{};var k=w.obj;w=w.pane;k&&k.checked&&(w=a.one(w))&&w.hide()},["aui-base"]);J.provide(s,"details",function(w){w=w||{};var k=a.one(w.detail);w=a.one(w.toggle);
if(k&&w){var e=s.icons.plus;k.hasClass("hide")?(k.show(),e=s.icons.minus):k.hide();w.attr("src",e)}},["aui-base"]);J.provide(s,"proposeLayout",function(w){w=w||{};var k=w.namespace,e=w.reviewers;w='\x3cdiv\x3e\x3cform action\x3d"'+w.url+'" method\x3d"post"\x3e';if(0=q,H=v>=
q-t,M=v>=m;if(H||M)"expired"==z&&(O=!0,A=!1,H=B=!0),H&&"expired"!=u?A&&!B?(E=M=H=B=O=!1,p.extend()):(p.expire(),O=!0):!M||H||A||"warned"==u||(p.warn(),E=!0);for(var D in l)l[D](v,1E3,M,B,H,E,O)},1E3)},_stopTimer:function(){a.clearInterval(this._intervalId)},_cookieKey:"LFR_SESSION_STATE_"+themeDisplay.getUserId()}});f.SRC=c;var h=a.Component.create({ATTRS:{pageTitle:{value:k.title}},EXTENDS:a.Plugin.Base,NAME:"liferaysessiondisplay",NS:"display",prototype:{initializer:function(p){p=this.get("host");
Liferay.Util.getTop()==w.win?(this._host=p,this._toggleText={hide:'Hide',show:'Show'},this._expiredText='Due\x20to\x20inactivity\x2c\x20your\x20session\x20has\x20expired\x2e\x20Please\x20save\x20any\x20data\x20you\x20may\x20have\x20entered\x20before\x20refreshing\x20the\x20page\x2e',this._warningText='Due\x20to\x20inactivity\x2c\x20your\x20session\x20will\x20expire\x20in\x20\x7b0\x7d\x2e\x20To\x20extend\x20your\x20session\x20another\x20\x7b1\x7d\x20minute\x28s\x29\x2c\x20please\x20press\x20the\x20\x3cem\x3eExtend\x3c\x2fem\x3e\x20button\x2e\x20\x7b2\x7d',this._warningText=J.sub(this._warningText,['\x3cspan class\x3d"countdown-timer"\x3e{0}\x3c/span\x3e',p.get("sessionLength")/6E4,'\x3ca class\x3d"alert-link" href\x3d"#"\x3e'+'Extend'+
"\x3c/a\x3e"]),p.on("sessionStateChange",this._onHostSessionStateChange,this),this.afterHostMethod("_defActivatedFn",this._afterDefActivatedFn),this.afterHostMethod("_defExpiredFn",this._afterDefExpiredFn)):p.unplug(this)},destructor:function(){this._banner&&this._destroyBanner()},_afterDefActivatedFn:function(p){this._uiSetActivated()},_afterDefExpiredFn:function(p){this._host.unregisterInterval(this._intervalId);this._uiSetExpired()},_beforeHostWarned:function(p){var q=this;p=q._host;var t=p.get("sessionLength"),
m=p.get("timestamp"),l=p.get("warningLength"),u=t;J.toInt(m)&&(u=1E3*Math.floor((Date.now()-m)/1E3));var v=t-u;v>l&&(v=l);var z=q._getBanner(),A=z.one(".countdown-timer").getDOMNode();q._uiSetRemainingTime(v,A);z.show();q._intervalId=p.registerInterval(function(O,E,B,H,M,D){B?H||(M&&(0>=v&&(v=l),z.show()),O=1E3*Math.floor((Date.now()-m)/1E3),v=t-O,q._uiSetRemainingTime(v,A)):q._uiSetActivated();v-=E})},_destroyBanner:function(){this._banner=!1;var p=a.one(".lfr-notification-container");p&&p.remove()},
_formatNumber:function(p){return J.String.padNumber(Math.floor(p),2)},_formatTime:function(p){p=Number(p);J.isNumber(p)&&0J.Browser.getMajorVersion()&&(s.addInputType=function(l){l=l?a.one(l):a.one(document.body);l.all("input").each(function(u,v){var z=u.get("type")||"text";u.addClass(z)})});return s.addInputType(m)};s.camelize=function(m,l){var u=p;l&&(u=RegExp(l+"([a-z])","gi"));return m=m.replace(u,function(v,
z){return z.toUpperCase()})};s.clamp=function(m,l,u){return Math.min(Math.max(m,l),u)};s.escapeHTML=function(m,l,u){var v=q,z=[],A;w.isObject(u)?(A=[],e.each(u,function(O,E){z.push(E);A.push(O)}),v=RegExp("["+c.escapeRegEx(z.join(""))+"]","g")):(u=f,A=b);return m.replace(v,a.bind("_escapeHTML",s,!!l,u,A))};s.isEditorPresent=function(m){return J.EDITORS&&J.EDITORS[m]};s.randomMinMax=function(m,l){return Math.round(Math.random()*(l-m))+m};s.selectAndCopy=function(m){m.focus();m.select();document.all&&
m.createTextRange().execCommand("copy")};s.setBox=function(m,l){for(var u=m.length-1;-1